﻿function tableFix(){
var v = document.getElementsByTagName("tr");
for (var i = 0; i < v.length; i++) {v[i].onmouseover = ClassNames;v[i].onmouseout = ClassNames;v[i].altClassName = v[i].className + "hover";}}
function ClassNames() {var n = this.className;this.className = this.altClassName;this.altClassName = n;}
function preview() { 
bdhtml=window.document.body.innerHTML; 
sprnstr="<!--startprint-->"; 
eprnstr="<!--endprint-->"; 
prnhtml=bdhtml.substr(bdhtml.indexOf(sprnstr)+17); 
prnhtml=prnhtml.substring(0,prnhtml.indexOf(eprnstr)); 
window.document.body.innerHTML=prnhtml; 
window.print(); 
window.document.body.innerHTML=bdhtml; 
         }
function CheckString (str,Min,Max,msg) {
	if (str.length>Max||str.length<Min) {
		alert(msg);
		return 0;
		}
	else
	return true;
	}